package com.liuboya.service.tablebiz.users.Impl;

import com.liuboya.dao.weibo.users.dao.UsersDao;
import com.liuboya.dao.weibo.users.entity.Users;
import com.liuboya.dao.weibo.users.entity.UsersExample;
import com.liuboya.service.tablebiz.users.UsersService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 *
 * 描述：
 *
 * @author yeyuan
 * @date 2021/08/12 16:44
 **/
@Service
public class UsersServiceImpl implements UsersService {
    @Resource
    private UsersDao usersDao;

    @Override
    public Long insert(Users users) {
        return usersDao.insert(users);
    }

    @Override
    public List<Users> find(UsersExample example) {
        return usersDao.find(example);
    }

    @Override
    public Integer update(Users users, UsersExample example) {
        return usersDao.update(users, example);
    }

    @Override
    public Integer count(UsersExample example) {
        return usersDao.count(example);
    }
}